package com.jxb.ractBase;

import reactor.core.publisher.Flux;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/10/23 21:37
 **/
public class ReduceTest {

    public static void main(String[] args) {
        Flux<Integer> just = Flux.just(1, 2, 3, 4, 5);
        just.reduce(0,(pre,cur)->pre+cur).subscribe(System.out::println);
    }

}
